package com.ly.mpayment.persist.entity;

import java.math.BigDecimal;
import java.util.Date;
import java.util.Set;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;


/**
 * BusinessType entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name="channel_base"

)

public class ChannelBase  implements java.io.Serializable {


    // Fields

     private String baseId;
     private Operators operatorsBase;
     private String baseName;
     private int status;
     private Date createtime;
     private BigDecimal basePrice;
     private int flow;

    // Constructors

    /** default constructor */
    public ChannelBase() {
    }




    public ChannelBase(String baseId, Operators operatorsBase, String baseName, int status, Date createtime) {
		this.baseId = baseId;
		this.operatorsBase = operatorsBase;
		this.baseName = baseName;
		this.status = status;
		this.createtime = createtime;
	}




	// Property accessors
    @Id
    @GeneratedValue(generator = "uuid")
    @GenericGenerator(name = "uuid", strategy = "uuid")
    @Column(name="base_id", unique=true, nullable=false, length=36)
    public String getBaseId() {
  		return baseId;
  	}

  	public void setBaseId(String baseId) {
  		this.baseId = baseId;
  	}

	@ManyToOne(fetch=FetchType.LAZY)
        @JoinColumn(name="operatoruid")
	public Operators getOperatorsBase() {
		return operatorsBase;
	}

	public void setOperatorsBase(Operators operatorsBase) {
		this.operatorsBase = operatorsBase;
	}

	@Column(name="base_name")
	public String getBaseName() {
		return baseName;
	}

	public void setBaseName(String baseName) {
		this.baseName = baseName;
	}

	@Column(name="status")
    public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	@Column(name="create_time", length=19)

    public Date getCreatetime() {
        return this.createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    @Column(name="base_price")
	public BigDecimal getBasePrice() {
		return basePrice;
	}

	public void setBasePrice(BigDecimal basePrice) {
		this.basePrice = basePrice;
	}

	@Column(name="flow")
	public int getFlow() {
		return flow;
	}

	public void setFlow(int flow) {
		this.flow = flow;
	}


}
